import request from '@/utils/system/request'

// 保存文章
export function pushPost(data: object) {
	return request({
		url: '/article/post/user',
		method: 'post',
		data
	})
}

// 获取用所有文章
export function listByUser(data: object) {
	return request({
		url: '/article/post/userlist',
		method: 'post',
		data
	})
}

// 删除文章
export function del(data: object) {
	return request({
		url: '/article/post/user',
		method: 'delete',
		data
	})
}
